home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / borcmpad / multipad.h < prev    next >
C/C++ Source or Header  |  1990-09-27  |  5KB  |  172 lines

  1. #include "windows.h"
  2. #include "drivinit.h"
  3.  
  4. #define CDECL cdecl
  5.  
  6. #define WINDOWMENU  3    /* position of window menu         */
  7. #define SHORTMENU   2    /* position of short version window menu */
  8.  
  9. #define DEFFILESEARCH    (LPSTR) "*.TXT"
  10.  
  11. #ifdef RC_INVOKED
  12. #define ID(id) id
  13. #else
  14. #define ID(id) MAKEINTRESOURCE(id)
  15. #endif
  16.  
  17. /* edit control identifier */
  18. #define ID_EDIT 0xCAC
  19.  
  20. /* resource ID's */
  21. #define IDMULTIPAD  ID(1)
  22. #define IDMULTIPAD2 ID(3)
  23. #define IDNOTE        ID(2)
  24.  
  25. /* Window word values for child windows */
  26. #define GWW_HWNDEDIT    0
  27. #define GWW_CHANGED    2
  28. #define GWW_WORDWRAP    4
  29. #define GWW_UNTITLED    6
  30. #define CBWNDEXTRA    8
  31.  
  32. /* menu ID's */
  33. #define IDM_FILENEW    1001
  34. #define IDM_FILEOPEN    1002
  35. #define IDM_FILESAVE    1003
  36. #define IDM_FILESAVEAS    1004
  37. #define IDM_FILEPRINT    1005
  38. #define IDM_FILEEXIT    1006
  39. #define IDM_FILEABOUT    1007
  40. #define IDM_FILESETUP    1008
  41. #define IDM_FILEMENU    1009
  42.  
  43. #define IDM_EDITUNDO    2001
  44. #define IDM_EDITCUT    2002
  45. #define IDM_EDITCOPY    2003
  46. #define IDM_EDITPASTE    2004
  47. #define IDM_EDITCLEAR    2005
  48. #define IDM_EDITSELECT    2006
  49. #define IDM_EDITTIME    2007
  50. #define IDM_EDITWRAP    2008
  51. #define IDM_EDITFONT    2009
  52. #define IDM_EDITFIRST    IDM_EDITUNDO
  53. #define IDM_EDITLAST    IDM_EDITFONT
  54.  
  55. #define IDM_SEARCHFIND    3001
  56. #define IDM_SEARCHNEXT    3002
  57. #define IDM_SEARCHPREV    3003
  58. #define IDM_SEARCHFIRST IDM_SEARCHFIND
  59. #define IDM_SEARCHLAST    IDM_SEARCHPREV
  60.  
  61. #define IDM_WINDOWTILE    4001
  62. #define IDM_WINDOWCASCADE 4002
  63. #define IDM_WINDOWCLOSEALL  4003
  64. #define IDM_WINDOWICONS 4004
  65.  
  66. #define IDM_WINDOWCHILD 4100
  67.  
  68. #define IDM_HELPHELP    5001
  69. #define IDM_HELPABOUT    5002
  70. #define IDM_HELPSPOT    5003
  71.  
  72. #define IDD_FILEOPEN    ID(200)
  73. #define IDD_FILENAME    201
  74. #define IDD_FILES    202
  75. #define IDD_PATH    203
  76. #define IDD_DIRS    204
  77.  
  78. /* dialog ids */
  79. #define IDD_ABOUT    ID(300)
  80.  
  81. #define IDD_FIND    ID(400)
  82. #define IDD_SEARCH    401
  83. #define IDD_PREV    402
  84. #define IDD_NEXT    IDOK
  85. #define IDD_CASE    403
  86.  
  87. #define IDD_SAVEAS    ID(500)
  88. #define IDD_SAVEFROM    501
  89. #define IDD_SAVETO    502
  90.  
  91. #define IDD_PRINT    ID(600)
  92. #define IDD_PRINTDEVICE 601
  93. #define IDD_PRINTPORT    602
  94. #define IDD_PRINTTITLE    603
  95.  
  96. #define IDD_FONT    ID(700)
  97. #define IDD_FACES    701
  98. #define IDD_SIZES    702
  99. #define IDD_BOLD    703
  100. #define IDD_ITALIC    704
  101. #define IDD_FONTTITLE    705
  102.  
  103. /* strings */
  104. #define IDS_CANTOPEN    1
  105. #define IDS_CANTREAD    2
  106. #define IDS_CANTCREATE    3
  107. #define IDS_CANTWRITE    4
  108. #define IDS_ILLFNM    5
  109. #define IDS_ADDEXT    6
  110. #define IDS_CLOSESAVE    7
  111. #define IDS_CANTFIND    8
  112. #define IDS_HELPNOTAVAIL 9
  113.  
  114. #define IDS_CLIENTTITLE 16
  115. #define IDS_UNTITLED    17
  116. #define IDS_APPNAME    18
  117.  
  118. #define IDS_PRINTJOB    24
  119. #define IDS_PRINTERROR    25
  120.  
  121. /* attribute flags for DlgDirList */
  122. #define ATTR_DIRS    0xC010        /* find drives and directories */
  123. #define ATTR_FILES    0x0000        /* find ordinary files           */
  124. #define PROP_FILENAME    szPropertyName    /* name of property for dialog */
  125.  
  126. /*
  127.  *  External variable declarations
  128.  */
  129. extern HANDLE hInst;        /* application instance handle          */
  130. extern HANDLE hAccel;        /* resource handle of accelerators      */
  131. extern HWND hwndFrame;        /* main window handle              */
  132. extern HWND hwndMDIClient;    /* handle of MDI Client window          */
  133. extern HWND hwndActive;     /* handle of current active MDI child      */
  134. extern HWND hwndActiveEdit;    /* handle of edit control in active child */
  135. extern LONG styleDefault;    /* default child creation state       */
  136. extern char szChild[];        /* class of child              */
  137. extern char szSearch[];     /* search string              */
  138. extern char *szDriver;        /* name of printer driver          */
  139. extern char szPropertyName[];    /* filename property for dialog box      */
  140. extern int iPrinter;        /* level of printing capability       */
  141. extern BOOL fCase;        /* searches case sensitive          */
  142. extern WORD cFonts;        /* number of fonts enumerated          */
  143. extern HWND hStatWnd;       /**//* handle to status bar child window      */
  144.  
  145. /*  externally declared functions
  146.  */
  147. extern BOOL FAR PASCAL InitializeApplication(VOID);
  148. extern BOOL FAR PASCAL InitializeInstance(LPSTR,WORD);
  149. extern BOOL FAR PASCAL AboutDlgProc(HWND,WORD,WORD,LONG);
  150. extern HWND FAR PASCAL AddFile(char *);
  151. extern VOID FAR PASCAL ReadFile(HWND);
  152. extern VOID FAR PASCAL SaveFile(HWND);
  153. extern BOOL FAR PASCAL ChangeFile(HWND);
  154. extern int FAR PASCAL LoadFile(HWND, char *);
  155. extern VOID FAR PASCAL PrintFile(HWND);
  156. extern BOOL FAR PASCAL GetInitializationData(HWND);
  157. extern short FAR CDECL MPError(HWND,WORD,WORD,...);
  158. extern VOID FAR PASCAL Find(void);
  159. extern VOID FAR PASCAL FindNext(void);
  160. extern VOID FAR PASCAL FindPrev(void);
  161. extern VOID FAR PASCAL MPSpotHelp(HWND,POINT);
  162. extern LONG FAR PASCAL MPFrameWndProc(HWND,WORD,WORD,LONG);
  163. extern LONG FAR PASCAL MPMDIChildWndProc(HWND,WORD,WORD,LONG);
  164. extern HDC FAR PASCAL GetPrinterDC(void);
  165. extern VOID NEAR PASCAL SetSaveFrom (HWND, PSTR);
  166. extern BOOL NEAR PASCAL RealSlowCompare (PSTR, PSTR);
  167. extern VOID FAR PASCAL FindPrev (void);
  168. extern VOID FAR PASCAL FindNext (void);
  169. extern BOOL NEAR PASCAL IsWild (PSTR);
  170. extern VOID NEAR PASCAL SelectFile (HWND);
  171. extern VOID NEAR PASCAL FindText ( int );
  172. extern long FAR PASCAL StatusWndProc(HWND, unsigned, WORD, LONG);  /**/